This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 27, 2012, 6:17 PM
6 Posts

Checkboxgroups and clientside script

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: clientside checkbox checkboxgroup
  • Replies: 1
I have two fields on an xpage..one an edit box (named wordstring1 which is used so I can make sure the alerts are working) and a checkboxgroup control called checkBoxGroup1.

The wordstring control generates this source:

<xp:inputText
                            value="#{dominoDocument1.wordstring}" id="wordstring1"
                            style="width:359.0px">
                        </xp:inputText>
 
which generates this source:
 
<td style="width:92.0px"><input type="text" id="view:_id1:_id26:wordstring1" name="view:_id1:_id26:wordstring1" style="width:359.0px" class="xspInputFieldEditBox"></td>
 
----------------------------------------------------------------------------------------------------------------------
The checkboxgroup control generates this source:
 
<xp:td><xp:checkBoxGroup id="checkBoxGroup1" layout="pageDirection" value="#{dominoDocument1.DBChoice}" style="font-weight:bold">
                        <xp:selectItems id="selectItems1">
                            <xp:this.value><![CDATA[#{javascript:sessionScope.SearchDBs}]]></xp:this.value>    //note that I populate the sessionScope in the beforepageload, and that it is dynamic as to the number of entries
                        </xp:selectItems>
                    </xp:checkBoxGroup></xp:td>
 
which generates
 
<td colspan="2" style="width:277.0px"><fieldset id="view:_id1:_id26:checkBoxGroup1" style="font-weight:bold" class="xspCheckBox"><table class="xspCheckBox" style="font-weight:bold">

         <tr>
<td>
<label><input name="view:_id1:_id26:checkBoxGroup1" value="a) NOTEbookS Catalog" type="checkbox"> a) NOTEbookS Catalog</input></label></td>
         </tr>
         <tr>
<td>
<label><input name="view:_id1:_id26:checkBoxGroup1" value="b) NOTEbookS Serials" type="checkbox"> b) NOTEbookS Serials</input></label></td>
         </tr>
         <tr>

<td>
<label><input name="view:_id1:_id26:checkBoxGroup1" value="c) Catboat Knowledgebase" type="checkbox"> c) Catboat Knowledgebase</input></label></td>
         </tr>
         <tr>
<td>
<label><input name="view:_id1:_id26:checkBoxGroup1" value="d) Competitive Intelligence" type="checkbox"> d) Competitive Intelligence</input></label></td>
         </tr>
         <tr>
<td>

<label><input name="view:_id1:_id26:checkBoxGroup1" value="e) NOTEbookS Research (General)" type="checkbox"> e) NOTEbookS Research (General)</input></label></td>
         </tr>
</table></fieldset></td>
The first alert pops up fine with the results of "abcd".(as it should)

The second alert pops up as "undefined".

The third alert doesn't do anything.

Am I missing something, or is there a problem in the way the interpreter handles getElementById's for arrays?
 
Has this been resolved in 8.5.3?
Mar 29, 2012, 8:18 AM
129 Posts
Re: Checkboxgroups and clientside script
If the third event doesn't fire an alert box(?), it sounds like there has been a JavaScript error on the page.
 
If you use firefox/firebug, check the console for any errors.
If you use Internet Explorer > 7, press F12, and check the script tab for errors. 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal